﻿@{
    Layout = null;
}
@using CoralNode.Core.Entity.Domains.Site
@model Dictionary<string, object>
@helper CurrentTab(string tempStr) {
    string current = string.Empty;
    if (Model != null) {
        current = Model["current"].ToString().ToLower();
    }
    if (current.Equals(tempStr, StringComparison.CurrentCultureIgnoreCase)) {
    @String.Format("class=current")
    }
}
@{
    int siteId = 0;
    if (Model != null && Model["siteId"] != null) {
        siteId = int.Parse(Model["siteId"].ToString());
    }
}
<div class="tablist extra_normal">
    <a href="/m/site/editsite/@siteId" @CurrentTab("info")>站点信息</a>
    <a href="/m/site/EditExtension/@siteId" @CurrentTab("extensioninfo")>扩展信息</a>
    <a href="/m/site/SettingSiteExtend/@siteId" @CurrentTab("extensionsetting")>扩展设置</a>
    @*<a href="/m/site/templatelist/@site.Id" @CurrentTab("surface")>网站外观</a>*@
    <a href="/m/site/EditPermission/@siteId" @CurrentTab("permission")>权限设置</a>
    <a href="/m/site/EditPerformance/@siteId" @CurrentTab("performance")>性能设置</a>
</div>
